class CreateTopics < ActiveRecord::Migration
  def self.up
    create_table :topics do |t|
      t.column    :user_id,       :int
      t.column    :title ,        :string
      t.column    :topic_content ,:text
      t.column    :visible,       :boolean

      t.timestamps
    end
  end

  def self.down
    drop_table :topics
  end
end
